<?php

declare(strict_types=1);
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/11/7
 * Time: 2:40 PM
 */

namespace App\Entity;

use App\Models\CartItem;

class CartItemEntity extends ABaseEntity
{
    public function __construct(CartItem $model)
    {
        $this->model = $model;
    }

    /**
     * @return int
     */
    public function getId()
    {
        return $this->model->id;
    }

    /**
     * @return string
     */
    public function getAssignDate()
    {
        return $this->model->assign_date;
    }

    /**
     * @return int
     */
    public function getAssignTime()
    {
        return $this->model->assign_time;
    }

    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->model->created_at;
    }

    /**
     * @return int
     */
    public function getSquareMetre()
    {
        return $this->model->square_metre;
    }
}
